<template>
    <div class="qiandao">
        <button @click="qiandao">签到</button>
        <button @click="logout">退出登录</button>
    </div>
</template>

<script>
export default {
    methods: {
        logout() {
            window.sessionStorage.clear();
            this.$router.push('/login');
        },
        async qiandao() {
            const res = await this.$http.post('/qiaodao');
            console.log('res', res);
        },
    },
};
</script>
